package io;

import java.io.BufferedReader;
import java.io.FileReader;
import java.nio.CharBuffer;

public class FileReaderExam {

	public static void main(String[] args) {
		try {
			FileReader fr= 
					new FileReader("c:/hello.txt");
			CharBuffer cb = CharBuffer.allocate(100);
			/*int t=fr.read(cb);
			System.out.println(cb);
			System.out.println(t);
			char[] c=cb.array();
			String data=new String(c);
			System.out.println(data);     */
			
			
			BufferedReader br=
					new BufferedReader(fr);
			String line="";
			while( (line=br.readLine() !=null{
				System.out.println(line);
			}

		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
